package com.pactera.madp.cp.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * RemoteProductService
 *
 * @author huhao
 * @version 1.0
 * 2022/04/16 14:37
 **/
@FeignClient(contextId = "remoteProductService", value = ServiceNameConstants.CP_SERVICE)
public interface RemoteProductService {

    @GetMapping("/prod/synclose")
    void onSyncClose(@RequestHeader(SecurityConstants.FROM) String from);

}
